import type { LoginResponse } from '@/services/modules'
import request from '@/utils/request'

export const login = (data: any): Promise<R<LoginResponse>> => {
    return request({
        url: '/login',
        method: 'post',
        data
    })
}